import React, { Component } from "react";

export default class App extends Component {
  moren = (e) => {
    console.log(e);
    e.preventDefault();
  };
  render() {
    return (
      <div>
        <button>都是</button>
        <a href="https://tianqi.qq.com/" onClick={this.moren}>
          百度
        </a>
      </div>
    );
  }
}
